<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

	// Route::get('/', function () {
	//     return view('index');
	// });
	Route::Controller('/index','Home\IndexController');
	/*cjp*/

	// Route::Controller('/admin/author','Admin\author\IndexController');
	// Route::Controller('/admin/article','Admin\author\ArticleController');
	// Route::Controller('/admin/books','Admin\author\BookController');
	// Route::Controller('/admin/editor','Admin\editor\EditorController');
	// Route::Controller('/admin/earticle','Admin\editor\ArticleController');
	// Route::Controller('/admin/ebooks','Admin\editor\BooksController');
	// Route::Controller('/admin/euser','Admin\editor\UserController');
	// Route::Controller('/admin/acomment','Admin\author\CommentController');
	// Route::Controller('/admin/ecomment','Admin\editor\CommentController');
	// Route::Controller('/admin/extra','Admin\author\ExtraController');
	// Route::Controller('/admin/account','Admin\author\AccountController');


	Route::Controller('/home/detail','Home\DetailController');
	Route::Controller('/home/kefu','Home\KefuController');
	Route::Controller('/home/kefuer','Home\KefuerController');
	
	// Route::Controller('/admin/account','Admin\author\AccountController');

	/*cjp end*/


	/*zzh*/

	Route::group(['middleware'=>'login'],function(){

	});
	//前台登录页面
	Route::Controller('/home/login','Home\LoginController');
	//前台注册页面
	Route::get('/register','Home\LoginController@register');
	//提交注册
	Route::post('/register','Home\LoginController@doregister');
	//验证码
	Route::get('/vcode','Home\LoginController@vcode');
	//邮箱发送测试
	Route::get('/sendMail','Home\LoginController@sendMail');
	//邮箱激活的发送
	Route::get('/jihuo','Home\LoginController@jihuo');
	//找回密码
	Route::Controller('/find','Home\FindController');
	//注册使用的邮箱查询用户
	Route::post('/find','Home\FindController@find');
	//发送邮箱测试
	Route::get('/sendsMail','Home\FindController@sendsMail');
	//提交后执行密码找回
	Route::match(['get','post'],'/zhaohui','Home\FindController@zhaohui');
	//邮箱修改发送
	Route::get('/find','Home\FindController@dofind');
	//书库
	Route::Controller('/bookstore','Home\BookstoreController');

	//前台个人中心
	Route::Controller('/home','Home\PersonageController');
	//设置个人资料
	Route::get('/install','Home\PersonageController@install');
	//执行个人资料修改
	Route::post('/install','Home\PersonageController@doinstall');

	/*zzh end*/

	/*wzj*/
 Route::group(['middleware'=>'login'],function(){

	Route::get('/admin',function(){
		return view('admin.superadmin.index.index');
	});


	//隐式控制器  普通用户
	Route::controller('/admin/superadmin/user','Admin\Superadmin\UserController');
	//作者
	Route::controller('/admin/superadmin/author','Admin\Superadmin\AuthorController');
	//编辑
	Route::controller('/admin/superadmin/editor','Admin\Superadmin\EditorController');
	Route::controller('/admin/superadmin/tx','Admin\Superadmin\TxController');

	//友情链接
	Route::controller('/admin/superadmin/link','Admin\Superadmin\LinkController');
	// 轮播图
	Route::controller('/admin/superadmin/shuffling','Admin\Superadmin\ShufflingController');

	//网站配置
	Route::controller('/admin/superadmin/config','Admin\Superadmin\ConfigController');
	// ======================================================================//
	Route::Controller('/admin/author','Admin\author\IndexController');
	Route::Controller('/admin/article','Admin\author\ArticleController');
	Route::Controller('/admin/books','Admin\author\BookController');
	Route::Controller('/admin/editor','Admin\editor\EditorController');
	Route::Controller('/admin/earticle','Admin\editor\ArticleController');
	Route::Controller('/admin/ebooks','Admin\editor\BooksController');
	Route::Controller('/admin/euser','Admin\editor\UserController');
	Route::Controller('/admin/acomment','Admin\author\CommentController');
	Route::Controller('/admin/ecomment','Admin\editor\CommentController');
	Route::Controller('/admin/extra','Admin\author\ExtraController');
	Route::Controller('/admin/account','Admin\author\AccountController');

 });


	//后台登录
	Route::controller('/admin/superadmin/login','Admin\Superadmin\LoginController');

/*wzj end*/